Next: 5.1.6 Interfacing SDCDB with Up: 5.1 Debugging with SDCDB Previous: 5.1.4 SDCDB Command Line Contents Index
Subsections

- break [line | file:line | function | file:function]
- clear [line | file:line | function | file:function ]
- continue
- finish
- delete [n]
- info [break | stack | frame | registers ]
- step
- next
- run
- ptype variable
- print variable
- file filename
- frame
- set srcmode
- ! simulator command
- quit

## 5.1.5 SDCDB Debugger Commands

As mentioned earlier the command interface for the debugger has been deliberately kept as close the GNU debugger gdb, as possible. This will help the integration with existing graphical user interfaces (like ddd, xxgdb or xemacs) existing for the GNU debugger. If you use a graphical user interface for the debugger you can skip this section.

### break [line | file:line | function | file:function]

Set breakpoint at specified line or function:
sdcdb>break 100
sdcdb>break foo.c:100
sdcdb>break funcfoo
sdcdb>break foo.c:funcfoo

### clear [line | file:line | function | file:function ]

Clear breakpoint at specified line or function:
sdcdb>clear 100
sdcdb>clear foo.c:100
sdcdb>clear funcfoo
sdcdb>clear foo.c:funcfoo

### continue

Continue program being debugged, after breakpoint.

### finish

Execute till the end of the current function.

### delete [n]

Delete breakpoint number 'n'. If used without any option clear ALL user defined break points.

### info [break | stack | frame | registers ]

- info break - list all breakpoints
- info stack - show the function call stack.
- info frame - show information about the current execution frame.
- info registers - show content of all registers.

### step

Step program until it reaches a different source line. Note: pressing <return> repeats the last command.

### next

Step program, proceeding through subroutine calls.

### run

Start debugged program.

### ptype variable

Print type information of the variable.

### print variable

print value of variable.

### file filename

load the given file name. Note this is an alternate method of loading file for debugging.

### frame

print information about current frame.

### set srcmode

Toggle between C source & assembly source.

### ! simulator command

Send the string following '!' to the simulator, the simulator response is displayed. Note the debugger does not interpret the command being sent to the simulator, so if a command like 'go' is sent the debugger can loose its execution context and may display incorrect values.

### quit

Watch me now. Iam going Down. My name is Bobby Brown

Next: 5.1.6 Interfacing SDCDB with Up: 5.1 Debugging with SDCDB Previous: 5.1.4 SDCDB Command Line Contents Index